/* 
 * Since 2008 - 2012
 */
package com.hh.bss.project.vo.query;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.project.dao.*;
import com.hh.bss.project.entity.*;
import com.hh.bss.project.service.*;
import com.hh.bss.project.vo.query.*;
import com.hh.bss.util.*;



public class CustomerPartnerQuery extends BaseQuery implements Serializable {

	private static final long serialVersionUID = -8655418191912588222L;
	/** id */
	private java.lang.Integer id;
	/** offerId */
	private java.lang.Integer apId;
	/** 参与人角色,常量选择：MC(职位负责人)，PC(合作顾问)，BA(业务助理),每个职位只有一个MC */
	private java.lang.String role;
	/** 参与人帐号(来自职位参与人) */
	private java.lang.String account;
	/** 业绩比例 */
	private java.lang.Long percent;
	/** 业绩金额,根据分配比例*contract_job_cv_offer.final_ar计算出 */
	private java.lang.Long amount;
	/** creator */
	private java.lang.String creator;
	/** createDt */
	private java.util.Date createDtBegin;
	private java.util.Date createDtEnd;
	/** modifier */
	private java.lang.String modifier;
	/** modifiedDt */
	private java.util.Date modifiedDtBegin;
	private java.util.Date modifiedDtEnd;

	public java.lang.Integer getId() {
		return this.id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}

	public java.lang.Integer getApId() {
		return apId;
	}

	public void setApId(java.lang.Integer apId) {
		this.apId = apId;
	}

	public java.lang.String getRole() {
		return this.role;
	}

	public void setRole(java.lang.String value) {
		this.role = value;
	}

	public java.lang.String getAccount() {
		return this.account;
	}

	public void setAccount(java.lang.String value) {
		this.account = value;
	}

	public java.lang.Long getPercent() {
		return this.percent;
	}

	public void setPercent(java.lang.Long value) {
		this.percent = value;
	}

	public java.lang.Long getAmount() {
		return this.amount;
	}

	public void setAmount(java.lang.Long value) {
		this.amount = value;
	}

	public java.lang.String getCreator() {
		return this.creator;
	}

	public void setCreator(java.lang.String value) {
		this.creator = value;
	}

	public java.util.Date getCreateDtBegin() {
		return this.createDtBegin;
	}

	public void setCreateDtBegin(java.util.Date value) {
		this.createDtBegin = value;
	}

	public java.util.Date getCreateDtEnd() {
		return this.createDtEnd;
	}

	public void setCreateDtEnd(java.util.Date value) {
		this.createDtEnd = value;
	}

	public java.lang.String getModifier() {
		return this.modifier;
	}

	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}

	public java.util.Date getModifiedDtBegin() {
		return this.modifiedDtBegin;
	}

	public void setModifiedDtBegin(java.util.Date value) {
		this.modifiedDtBegin = value;
	}

	public java.util.Date getModifiedDtEnd() {
		return this.modifiedDtEnd;
	}

	public void setModifiedDtEnd(java.util.Date value) {
		this.modifiedDtEnd = value;
	}

	private String field_type;
	private String query;

	public String getField_type() {
		return field_type;
	}

	public void setField_type(String file_type) {
		this.field_type = file_type;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}

	private String sort;
	private String dir;

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {

		this.sort = sort;
		if (!StringHelper.isEmpty(sort) && !StringHelper.isEmpty(dir))
			this.setSortColumns(sort + " " + dir);
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

}
